package aryn.framework.examples.display;

import aryn.framework.display.MyCanvas;
import aryn.framework.display.MyFrame;

public class Example1 {

	public static void main(String[] args) {
		// rifare in MyCanvas le arraylist usando gli array normali.
		final MyFrame frame = new MyFrame();
		final MyCanvas canvas = new MyCanvas();
		final Logic logic = new Logic(canvas);
		canvas.setLogic(logic);
		canvas.setDrawSelection(true);
		frame.addCanvas(canvas);
		
		canvas.addString("hello world", 30, 80);
		
		canvas.addImage("imgs/sfondoPiante.png", 10, 10);
		canvas.addImage("imgs/sfondoPiante.png", 50, 50);
	}
}
